package com.yunyao.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunyao.dao.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
public interface UserMapper extends BaseMapper<User> {

    long deptCount(@Param("newAncestors") String newAncestors, @Param("realName") String realName
            , @Param("account") String account);

    List<User> selectByDeptOrRealName(@Param("newAncestors") String newAncestors, @Param(
            "realName") String realName,
                                      @Param("account") String account,
                                      @Param("pageIndex") Long pageIndex,
                                      @Param("pageSize") Long pageSize);
}
